<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    info: { type: Object, required: true },
  },
});
</script>

<template>
  <view class="store-item">
    <image class="store-item-img" :src="info.pic_url" />
    <view class="store-item-name">{{ info.title }}</view>
  </view>
</template>

<style lang="scss">
.store-item {
  width: 174rpx;

  .store-item-img {
    display: block;
    width: 100%;
    height: 174rpx;
    margin-bottom: 20rpx;
    border-radius: 20rpx;
  }

  .store-item-name {
    font-size: 28rpx;
    color: #666666;
    line-height: 40rpx;
    text-align: center;
  }
}
</style>